#line 1 "G:/PSM/Coding dsPIC30F4011/Test uart/test_uart_transmitter.c"
unsigned char txt='a';
unsigned char rx1,rx2,rx3;
unsigned char rx1str[13],rx1strcat[1];


void uart_str(char *s)
{
 while(*s){uart1_write_char(*s++);}
}
void main() {

 ADPCFG = 0xFFFF;
 TRISB=0;PORTB=0;
 TRISD=0xFF;PORTD=0;
 Lcd_Custom_Config(&PORTB, 7,6,5,4, &PORTB, 0,1,2);
 Lcd_Custom_Cmd(Lcd_Cursor_Off);
 Lcd_Custom_Cmd(Lcd_Clear);

 Uart1_Init(9600);



 delay_ms(100);

 Lcd_Custom_Out(1,1,"Transmit Program");

 while(1)
 {
 portb.f8=1;
#line 57 "G:/PSM/Coding dsPIC30F4011/Test uart/test_uart_transmitter.c"
 if (Uart1_Data_Ready())
 {rx1 = Uart1_Read_Char();
 rx2 = Uart1_Read_Char();
 rx3 = Uart1_Read_Char();
 Uart1_Write_Char(rx1);
 Uart1_Write_Char(rx2);
 Uart1_Write_Char(rx3);
 lcd_custom_out(2,1,rx1);
 }
 if (Uart1_Data_Ready())
 {rx1 = Uart1_Read_Char();
 rx2 = Uart1_Read_Char();
 rx3 = Uart1_Read_Char();
 Uart1_Write_Char(rx1);
 Uart1_Write_Char(rx2);
 Uart1_Write_Char(rx3);
 lcd_custom_out(2,1,rx1);
 }
#line 87 "G:/PSM/Coding dsPIC30F4011/Test uart/test_uart_transmitter.c"
 }


}
